Update for the new API of the profiler.
authorFederico Mena Quintero <federico@ximian.com>
Fri, 29 Jul 2005 00:38:51 +0000 (00:38 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Fri, 29 Jul 2005 00:38:51 +0000 (00:38 +0000)
commitb4f52020f0fd86ddda88cdded1e4e84b47f384b6
tree1b22478a6f40c3351474d546fb617f72b81418ec
parent375cb32bc107b1e69be49689fd096b1c961d94af
Update for the new API of the profiler.

2005-07-28  Federico Mena Quintero  <federico@ximian.com>

* perf/README: Update for the new API of the profiler.

* perf/gtkwidgetprofiler.[ch]: New files with a widget profiler
object.  This is the old content of timers.[ch] turned into a nice
object, with signals for creation and reporting.  The profiler
needs to maintain some state when reusing the widget, so it's
useful to turn it into a real object.

Break down timing show_all into GTK_WIDGET_PROFILER_REPORT_MAP and
GTK_WIDGET_PROFILER_REPORT_EXPOSE.

* perf/main.c: Refactor to use GtkWidgetProfiler.

* perf/appwindow.c (content_area_new): Make this just create a
notebook, instead of a complex arrangement of panes.

* perf/widgets.h: New header file for all the "create a widget"
utility functions.

* perf/treeview.c: New file.  Moved the tree view part from
appwindow.c over to here; GtkTreeView really needs its own tests.
(tree_view_new): Set the shadow type to IN.

* perf/textview.c: Likewise moved over from appwindow.c, but for
GtkTextView.
(text_view_new): Set the shadow type to IN.

* perf/Makefile.am (testperf_SOURCES): Add the new source files;
remove appwindow.h and timers.[ch].

* perf/timers.[ch]: Removed.

* perf/appwindow.h: Removed.
16 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
perf/Makefile.am
perf/README
perf/appwindow.c
perf/appwindow.h [deleted file]
perf/gtkwidgetprofiler.c [new file with mode: 0644]
perf/gtkwidgetprofiler.h [new file with mode: 0644]
perf/main.c
perf/marshalers.list [new file with mode: 0644]
perf/textview.c [new file with mode: 0644]
perf/timers.c [deleted file]
perf/timers.h [deleted file]
perf/treeview.c [new file with mode: 0644]
perf/widgets.h [new file with mode: 0644]